FORCE IMPACT

This command will use the current control device if it has force feedback capability.

  Syntax
FORCE IMPACT Magnitude Value, Delay Value
  Parameters
Magnitude Value
Integer
The command will force the device to shudder at a power of magnitude specified between 0 and 100
Delay Value
Integer
The delay value specifies how many milliseconds to sustain the effect of force. A delay value of zero indicates an infinite effect of force

  Returns

This command does not return a value.

  Description

The command will force the device to shudder at a power of magnitude specified between 0 and 100. The delay value specifies how many milliseconds to sustain the effect of force. A delay value of zero indicates an infinite effect of force. The magnitude and delay should be integer values.

  Example Code
rem Prepare Force Feedback (if available)
ForcePresent=0
empty checklist
PERFORM CHECKLIST FOR CONTROL DEVICES
for c=1 to checklist quantity()
if checklist value a(c)=1
SET CONTROL DEVICE checklist string$(c)
ForcePresent=1
endif
next c
rem Test loop
do
MagnitudeValue=rnd(100)
DelayValue=rnd(100)
if ForcePresent=1
FORCE IMPACT MagnitudeValue, DelayValue
wait 1000*8
FORCE NO EFFECT
endif
loop
end
  See also

INPUT Commands Menu
Index